
char str_cmp(char *s1, char *s2)
{
    char i=0;   
    for (i=0;*s1!='\0'||*s2!='\0';i++)
    {
        if (*s1>*s2)
        {
            return 1;
        }     
        else if (*s1<*s2)
        {           
            return -1;
        }
        else if (*s1==*s2)
        {
            s1++;
            s2++;
            if (*s1=='\0'&&*s2=='\0')
            {                
                return 0;
            }
            continue;
        }
    }   
}


